home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 25 / 7 / DISK2576.ZIP / VGACOLOR.DOC < prev    next >
Text File  |  1991-05-05  |  47KB  |  1,427 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.                        *********************************
  13.                        *                               *
  14.                        *           VgaColor            *
  15.                        *                               *
  16.                        *********************************
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                         A VGA Color Monitor Utility
  24.                      For Selecting and Modifying DOS's
  25.                           Standard Color Palettes
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.                                     V2.0.03
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.                              Copyright (c)1990
  44.  
  45.                            DigiTec Software, Ltd.
  46.                            P. O. Box 9247
  47.                            Salt Lake City,  UT  84109
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.         _________________________________________________________________
  58.  
  59.  
  60.  
  61.               *************************************************
  62.               *                                               *
  63.               *                TABLE OF CONTENTS              *
  64.               *                                               *
  65.               *************************************************
  66.  
  67.  
  68.  
  69.         LICENSE AGREEMENT . . . . . . . . . . . . . . . . . . . . . . ii
  70.  
  71.         PRODUCT DESCRIPTION . . . . . . . . . . . . . . . . . . . . .  1
  72.  
  73.              Minimum System Requirements  . . . . . . . . . . . . . .  1
  74.              Distribution Files . . . . . . . . . . . . . . . . . . .  1
  75.              Installing VgaColor  . . . . . . . . . . . . . . . . . .  2
  76.  
  77.         USING VGACOLOR  . . . . . . . . . . . . . . . . . . . . . . .  3
  78.  
  79.              User-Controlled Options  . . . . . . . . . . . . . . . .  3
  80.              Special Key Usage  . . . . . . . . . . . . . . . . . . .  3
  81.              Starting VgaColor  . . . . . . . . . . . . . . . . . . .  5
  82.              Selecting a Color to Modify  . . . . . . . . . . . . . .  6
  83.              Modifying a Color  . . . . . . . . . . . . . . . . . . .  6
  84.              Increasing and Decreasing Intensity  . . . . . . . . . .  7
  85.              Restoring Colors . . . . . . . . . . . . . . . . . . . .  9
  86.                   Restore Active Color  . . . . . . . . . . . . . . .  9
  87.                   Restore All Colors  . . . . . . . . . . . . . . . .  9
  88.              Loading and Saving Color File Descriptions . . . . . . . 10
  89.                   Load Saved Color File . . . . . . . . . . . . . . . 10
  90.                   Saving a Color File Description . . . . . . . . . . 10
  91.              Enable/Disable Mode Change . . . . . . . . . . . . . . . 11
  92.              Printing the Modification Summary Report . . . . . . . . 12
  93.              Sound On/Off Toggle  . . . . . . . . . . . . . . . . . . 13
  94.              DOS Window . . . . . . . . . . . . . . . . . . . . . . . 13
  95.              Using VgaColor as a Dos Command  . . . . . . . . . . . . 14
  96.                   Switches  . . . . . . . . . . . . . . . . . . . . . 14
  97.  
  98.         CHANGING DOS FOREGROUND AND BACKGROUND COLORS . . . . . . . . 16
  99.  
  100.              ANSI.SYS . . . . . . . . . . . . . . . . . . . . . . . . 16
  101.              Using SETBF.EXE to change Foreground/Background colors . 17
  102.              Automating the Process . . . . . . . . . . . . . . . . . 18
  103.  
  104.         TECHNICAL INFORMATION . . . . . . . . . . . . . . . . . . . . 20
  105.  
  106.              General Information  . . . . . . . . . . . . . . . . . . 20
  107.              Assembly Language Example (INT 10h)  . . . . . . . . . . 20
  108.              Format of the Saved Color File Description . . . . . . . 21
  109.  
  110.  
  111.  
  112.         __________________________________________________________________
  113.  
  114.         DigiTec VgaColor               i                 Copyright (c)1990
  115.  
  116.                 **************************************************
  117.                 *                                                *
  118.                 *            VGACOLOR LICENSE AGREEMENT          *
  119.                 *                                                *
  120.                 **************************************************
  121.  
  122.            VgaColor is the property of DigiTec Software, Ltd., Salt Lake
  123.            City, Utah.  You are granted a non-exclusive license to use
  124.            VgaColor under the following conditions:
  125.  
  126.            In no event will DigiTec Software, Ltd., or any other person
  127.            or entity, be liable for damages or costs incurred resulting
  128.            from the use of VgaColor.  You agree to, and assume full
  129.            responsibility for, the use of VgaColor.  No warranties,
  130.            expressed or implied, are in effect for Vgacolor and is
  131.            provided "as is" for your use.  This agreement shall be
  132.            enforced under the laws of the State of Utah, County of
  133.            Salt Lake.
  134.  
  135.            DigiTec, Ltd. reserves all rights to VgaColor.  VgaColor is
  136.            NOT "Public Domain" software, but has been distributed under
  137.            "Shareware" principles.
  138.  
  139.  
  140.         YOU MAY:
  141.  
  142.         For promotional considerations of VgaColor, you may duplicate
  143.         and distribute all of the executable files, libraries and
  144.         user manuals, AS LONG AS YOU DISTRIBUTE THE ENTIRE PRODUCT
  145.         INTACT, which includes the documentation and executable files.
  146.  
  147.         If you like VgaColor and plan to use Vgacolor on a regular
  148.         basis, please register yourself with Digitec.
  149.  
  150.         The registration fee for VgaColor is $20.00 (U.S. dollars)
  151.         per copy, per machine.  Please remit to:
  152.  
  153.                             DigiTec Software, Ltd.
  154.                             P.O. Box 9247
  155.                             Salt Lake City, UT  84109
  156.  
  157.  
  158.         YOU MAY NOT:
  159.  
  160.         Sell or lease VgaColor, including the executable files, libraries
  161.         and documentation.  A reasonable distribution fee, not to exceed
  162.         $8.00, to cover materials, postage and handling is permissible.
  163.  
  164.         Modify, reverse-engineer or alter, in any manner, any part of the
  165.         VgaColor system including, but not limited to, the executable
  166.         files, libraries and user documentation.  VgaColor may not be
  167.         merged with other software, except for backup-up purposes.
  168.  
  169.         __________________________________________________________________
  170.  
  171.         DigiTec VgaColor              ii                 Copyright (c)1990
  172.  
  173.               ***********************************************
  174.               *                                             *
  175.               *             PRODUCT DESCRIPTION             *
  176.               *                                             *
  177.               ***********************************************
  178.  
  179.  
  180.  
  181.         VgaColor is a utility which allows you to easily modify the
  182.         standard color palettes if you have a VGA color monitor.
  183.         By standard color palette, we mean the colors represented
  184.         in palette numbers 0 through 15, which are the palettes DOS
  185.         as well as most text-based applications use.  This utility
  186.         can be useful for two audiences:  (1) a user who wishes to
  187.         display different colors while in DOS and (2) to aid the
  188.         programmer in designing color schemes for their applications.
  189.  
  190.         VgaColor provides several functions in addition to color
  191.         modification.  You can save your modifications to a disk
  192.         file, load a saved color description file and optionally
  193.         print a map of the individual color registers.  A saved
  194.         color description file may be loaded as a DOS command and
  195.         may be included in your AUTOEXEC.BAT file.  We also provide
  196.         SETBF.EXE, our program to change DOS foreground and background
  197.         colors, which replaces the DOS PROMPT command.
  198.  
  199.  
  200.  
  201.                          MINIMUM SYSTEM REQUIREMENTS
  202.  
  203.  
  204.  
  205.         PC/MS DOS 2.0 or higher
  206.         IBM or true compatible computer
  207.         VGA color monitor
  208.         Floppy or hard disk
  209.         116 Kb of free memory
  210.  
  211.  
  212.  
  213.                                 DISTRIBUTION FILES
  214.  
  215.  
  216.  
  217.                    *******************************************
  218.                    *        VGACOLOR.EXE       VGASAMP.BAT   *
  219.                    *        VGASCRN.EXE        TESTCOLR.VGA  *
  220.                    *        VGAFIO.EXE         REGISTER.YOU  *
  221.                    *        VGAMAPER.EXE       VGACOLOR.DOC  *
  222.                    *        VGACMDL.EXE        VGAREAD.ME    *
  223.                    *        SETBF.EXE                        *
  224.                    *******************************************
  225.  
  226.         __________________________________________________________________
  227.  
  228.         DigiTec VgaColor               1                 Copyright (c)1990
  229.  
  230.                                INSTALLING VGACOLOR
  231.  
  232.  
  233.  
  234.         The best way to install VgaColor is to create a separate directory
  235.         and use a DOS PATH to access it.  However you choose to install
  236.         and run VgaColor, all of the .EXE files must be available for
  237.         VgaColor to operate.
  238.  
  239.  
  240.  
  241.         Installing on a Hard Disk:
  242.  
  243.         1.  MD\VGACOLOR
  244.  
  245.         2.  CD\VGACOLOR
  246.  
  247.         3.  Insert your distribution disk in drive A
  248.  
  249.         3.  COPY A:*.*
  250.  
  251.  
  252.  
  253.         Floppy Disk Users:
  254.  
  255.         1.  Make a backup of your distribution disk and use the backup
  256.             copy as your working disk.
  257.  
  258.         2.  COMMAND.COM must be available to VgaColor.
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.         Although the VgaColor system does not use or require ANSI.SYS,
  267.         you must install ANSI.SYS in your CONFIG.SYS file to use
  268.         our program, SETBF.EXE, to change the DOS foreground and
  269.         background colors.
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.         __________________________________________________________________
  284.  
  285.         DigiTec VgaColor               2                 Copyright (c)1990
  286.  
  287.                  *************************************************
  288.                  *                                               *
  289.                  *               USING VGACOLOR                  *
  290.                  *                                               *
  291.                  *************************************************
  292.  
  293.  
  294.                               USER-CONTROLLED OPTIONS
  295.  
  296.  
  297.         Prior to starting VgaColor, the following SET commands may be
  298.         issued to control these functions:
  299.  
  300.  
  301.         SET IBMC=N  -  This will slow down the video display if you are
  302.                        operating in a windows environment or you
  303.                        experience incompatibility problems with your
  304.                        monitor.
  305.  
  306.         SET IBMC=F  -  Some color monitor boards may operate significantly
  307.                        faster using this option.
  308.  
  309.         SET IBMC=Q  -  Will suppress all "beeps" sounded in VgaColor
  310.                        (field errors not effected).
  311.  
  312.  
  313.         You can combine multiple options in one SET command.  For example,
  314.         if you want to use the faster display option and also suppress
  315.         "beeps":
  316.  
  317.                                   SET IBMC=FQ
  318.  
  319.         Note:  Do not place a space before or after the equal sign (=).
  320.                DOS will not recognize the parameters if you do.
  321.  
  322.  
  323.  
  324.  
  325.                                SPECIAL KEY USAGE:
  326.  
  327.         End
  328.  
  329.            The END key will restore the contents of a data item if you
  330.            mistakenly type over it.  It will restore the original contents
  331.            of the field, provided you have not pressed a function key or
  332.            TABed the cursor from the field.
  333.  
  334.  
  335.         Tab and Shift-Tab
  336.  
  337.            The TAB key moves the cursor forward from field to field.
  338.            Shift-TAB moves the cursor in the reverse direction.
  339.  
  340.         __________________________________________________________________
  341.  
  342.         DigiTec VgaColor               3                 Copyright (c)1990
  343.  
  344.  
  345.  
  346.  
  347.         Backspace
  348.  
  349.            The Backspace key is a destructive backspace key.  As you
  350.            press the key, the previous character is erased.
  351.  
  352.  
  353.         Home
  354.  
  355.            This key will take you to the first field on the screen.
  356.  
  357.  
  358.         Cursor/Arrow Keys
  359.  
  360.            The cursor control keys operate as follows:
  361.  
  362.            o The left and right cursor keys allow you to move the cursor
  363.              within a field (a field which allows you to enter data into
  364.              it).
  365.  
  366.            o The down and up cursor keys operate similar to the Tab and
  367.              Shift-Tab keys, which move the cursor forward and backward
  368.              through the fields.
  369.  
  370.  
  371.         Del
  372.  
  373.            The Delete key deletes the character at the cursor position and
  374.            moves all of the characters to the right of the cursor one
  375.            position to the left.
  376.  
  377.  
  378.         Ins
  379.  
  380.            The Insert key sets the computer into and out of insert mode.
  381.            Each character typed while in insert mode will shift all
  382.            characters to the right of the cursor one position further
  383.            to the right.  When in Insert mode, cursor will change to a
  384.            full block instead on an underline character.
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.         __________________________________________________________________
  398.  
  399.         DigiTec VgaColor               4                 Copyright (c)1990
  400.  
  401.  
  402.                                STARTING VGACOLOR
  403.  
  404.  
  405.         To start VgaColor, simply type VGACOLOR at the DOS prompt and
  406.         press the enter key.  The left side of the screen shows the
  407.         current state of the color palettes.  The right side of the
  408.         screen provides you with a larger visual of the color you are
  409.         modifying, controls for turning the Red, Blue and Green mixers
  410.         on and off, and a list of optional functions provided by
  411.         VgaColor. The bottom of the screen provides access to the
  412.         primary function keys for performing color modifications.
  413.  
  414.         The following pages describe each of the functions provided by
  415.         VgaColor.  A tutorial is also provided to show you how to tell
  416.         DOS to display a screen with background and foreground colors
  417.         and tips on how to change them using VgaColor.  The following
  418.         functions are available in VgaColor:
  419.  
  420.  
  421.  
  422.  
  423.  
  424.         Esc       - Quit VgaColor
  425.         F1        - Modify Intensity of Red
  426.         F2        - Modify Intensity of Green
  427.         F3        - Modify Intensity of Blue
  428.         F5        - Restore Active Color
  429.         F8        - Restore All Colors
  430.         Alt-L     - Load Saved Color File
  431.         Alt-M     - Enable/Disable Mode Change
  432.         Alt-P     - Print Current Settings
  433.         Alt-S     - Save Current Settings/Disk
  434.         Alt-T     - Sound On/Off
  435.         Shift-F10 - Dos Window
  436.  
  437.         Up Arrow   - Increase Intensity of Red, Green or Blue
  438.         Down Arrow - Decrease Intensity of Red, Green or Blue
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.         __________________________________________________________________
  455.  
  456.         DigiTec VgaColor               5                 Copyright (c)1990
  457.  
  458.  
  459.                            SELECTING A COLOR TO MODIFY
  460.  
  461.  
  462.  
  463.         The left side of the screen shows all of the possible colors
  464.         available in the first 16 palettes, which DOS and most text-
  465.         based applications use.  All 16 colors (0 - 15) may be used as
  466.         the foreground color.  Only the first 8 colors (0 - 7) may
  467.         be used as background colors.
  468.  
  469.         Simply type the number of the color you want to change and press
  470.         the Enter key.  For example, press the number 2 and then press the
  471.         enter key or press 02.  When the program senses two consecutive
  472.         numbers, an Enter is automatically issued.
  473.  
  474.         The color Green and its associated number should appear in the
  475.         top, right-hand box called "Selected Color to be Modified".
  476.         This is the primary visual area for reviewing the color you
  477.         have selected to modify.
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.                                 MODIFYING A COLOR
  485.  
  486.                                 F1 - F2 - F3 Keys
  487.  
  488.  
  489.         All colors are made up of varying intensities of the primary colors
  490.         Red, Blue and Green.  The following three function keys select which
  491.         primary color you wish to increase or decrease.
  492.  
  493.  
  494.         F1 = Change Red
  495.         F2 = Change Green
  496.         F3 = Change Blue
  497.  
  498.  
  499.         The second box on the right-hand side of the screen indicates which
  500.         primary color is currently active.  Listed above the words (R)ed,
  501.         (G)reen or (B)lue are numeric values which indicate the current value
  502.         of each of these primary colors.  For the color Green (assuming no
  503.         modifications have been made) the values should read 00 for Red,
  504.         42 for Green and 00 for Blue.  The word "On" or "Off" appears below
  505.         each of the primary colors.  You change the intensity of a color
  506.         by first pressing the F1, F2 or F3 key.  For example press F1 to
  507.         modify the intensity of Red.  The word "On" will appear, indicating
  508.         Red is the active primary color.
  509.  
  510.  
  511.         __________________________________________________________________
  512.  
  513.         DigiTec VgaColor               6                 Copyright (c)1990
  514.  
  515.  
  516.                        INCREASING AND DECREASING INTENSITY
  517.  
  518.                              Up and Down Arrow Keys
  519.  
  520.  
  521.  
  522.         The Up and Down arrow keys are used to increase the intensity
  523.         of Red, Green or Blue contained in a color.  The intensity ranges
  524.         from 0 (no color) to 63 (high intensity).  The Up arrow increases
  525.         intensity; the Down Arrow decreases intensity.  The numeric
  526.         value will change as you press these arrow keys.  Also notice
  527.         that an asterisk (*) will appear next the color on the left-hand
  528.         side of the screen indicating the original color was modified.
  529.         The asterisk (*) appears only when the original state of a
  530.         color is modified.
  531.  
  532.  
  533.         To show you how easy it is to change a color, follow the steps
  534.         listed below:
  535.  
  536.         (1) If you have not already done so, press 02 to select the
  537.             color Green.  The color Green will appear in the box,
  538.             "Selected Color to be Modified", as well as the color
  539.             number directly below it.
  540.  
  541.         (2) Press the F1 key to modify the Red content of the color.
  542.  
  543.         (3) Press the Down Arrow Key until the numeric indicator listed
  544.             above the color indicates 63.
  545.  
  546.         (4) Press the F2 key to modify the Green content of the color.
  547.  
  548.         (5) Press the Up Arrow key until the numeric indicator listed
  549.             above the color indicates 46.
  550.  
  551.         (6) Press the F3 key to modify the Blue content of the color.
  552.  
  553.         (7) Press the Up Arrow key until the numeric indicator listed
  554.             above the color indicates 54.
  555.  
  556.         Your color should look hot pink-like and an asterisk should appear
  557.         next to the low intensity word, "Green".  That's virtually all
  558.         there is to it.  Please note that variations in color monitors
  559.         may cause colors to look different from color monitor to color
  560.         monitor.
  561.  
  562.         Any of the sixteen colors can be modified in the same way you
  563.         just did.  With 64 intensities, each available for Red, Green
  564.         and Blue, you have the capability of producing 262,144 different
  565.  
  566.  
  567.  
  568.         __________________________________________________________________
  569.  
  570.         DigiTec VgaColor               7                 Copyright (c)1990
  571.  
  572.  
  573.         colors.  Naturally, you should use some discretion when changing
  574.         colors.  The colors will remain in effect until you or some other
  575.         application cancels them.  If you plan to modify a color simply
  576.         for display during your DOS session, we recommend you modify only
  577.         two colors--one for your foreground color and one for your background
  578.         color.  You should also try to modify a color not commonly used
  579.         by your applications.  This will help eliminate the tendency for
  580.         some very garish-looking screens.  We have found that selecting
  581.         low intensity Magenta (05) for your background and high intensity
  582.         Cyan (11) for your foreground to be colors that do not conflict
  583.         too often.  We also recommend you do not change Black (00),
  584.         White (07) or high intensity White (15).  These are base, neutral
  585.         colors used very often by applications.
  586.  
  587.         For DOS users who have never seen anything other than a black and
  588.         white screen at the DOS prompt, please refer to the section
  589.         titled "Changing DOS Foreground and Background Colors".  You
  590.         need to know how to tell DOS to display foreground and background
  591.         colors in order for any of the color modifications made with
  592.         VgaColor to appear.
  593.  
  594.         If you wanted to spend the time to do so, you could examine the
  595.         colors of your favorite applications, use VgaColor to modify the
  596.         colors used by those applications and save a color description
  597.         file.  You could then use the command-line load option to load the
  598.         saved color file before starting your word processor or spread
  599.         sheet.  The colors displayed in your applications would then
  600.         display your modifications.
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.         __________________________________________________________________
  626.  
  627.         DigiTec VgaColor               8                 Copyright (c)1990
  628.  
  629.  
  630.                                 RESTORING COLORS
  631.  
  632.                              F5 and F8 Function Keys
  633.  
  634.  
  635.  
  636.         VgaColor provides two methods of restoring colors to their original,
  637.         unmodified state:
  638.  
  639.  
  640.         F5 - Restore Active Color
  641.         F8 - Restore All Colors
  642.  
  643.  
  644.         F5 - Restore Active Color
  645.  
  646.         When the F5 key is pressed, the active color is restored to its
  647.         original, unmodified state.  Active color means the color and color
  648.         number showing in the "Selected Color to be Modified" box on the
  649.         screen.
  650.  
  651.  
  652.         F8 - Restore All Colors
  653.  
  654.         When the F8 key is pressed, all of the 16 color palettes are restored
  655.         to their original, unmodified state.  A warning message will pop up
  656.         to give you an opportunity to cancel or continue with the operation.
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.         __________________________________________________________________
  683.  
  684.         DigiTec VgaColor               9                 Copyright (c)1990
  685.  
  686.  
  687.                     LOADING AND SAVING COLOR FILE DESCRIPTIONS
  688.  
  689.                          Alt-L and Alt-S Functions Keys
  690.  
  691.  
  692.  
  693.         VgaColor provides you with the capability to load a previously
  694.         saved color description or save a new or modified color description
  695.         file.
  696.  
  697.  
  698.         Alt-L - Load Saved Color File
  699.  
  700.         When you press the Alt-L keys, a window will pop up requesting the
  701.         name of the file to load.  Simply enter the name of the file,
  702.         including any drive, path and extension, and press the Enter key.
  703.         Providing no problems occur during the load operation, Vgacolor
  704.         will load and process the color file you selected.
  705.  
  706.  
  707.         Alt-S - Save Current Settings/Disk
  708.  
  709.         When you press the Alt-S keys, a window will pop up requesting the
  710.         name of the file to save.  Simply enter the name of the file,
  711.         including any drive, path and extension, and press the Enter key.
  712.         Providing no problems occur during the save operation, the new
  713.         file will be saved.
  714.  
  715.  
  716.         Naming Conventions
  717.  
  718.         Although you can give the files any name you wish, we recommend you
  719.         use an extension of VGA.  This will provide easy identification for
  720.         you to know that VgaColor created the file.
  721.  
  722.  
  723.         Error Messages
  724.  
  725.         VgaColor performs several diagnostics during a load or save operation.
  726.         If a problem occurs, a window will pop up giving you a description
  727.         of the problem and the action you need to take.  If an error occurs,
  728.         simply respond to the appropriate action requested by the error
  729.         message.
  730.  
  731.         Do not modify the files created by VgaColor.  The program expects
  732.         them in a very specific format.  The program will refuse to load
  733.         the file if it is not in the expected format.  For programmers who
  734.         wish to use the file in their own applications, a description of
  735.         the file's format can be found in the "Technical Information"
  736.         section of this documentation.
  737.  
  738.  
  739.         __________________________________________________________________
  740.  
  741.         DigiTec VgaColor               10                Copyright (c)1990
  742.  
  743.                            ENABLE/DISABLE MODE CHANGE
  744.  
  745.                                Alt-M Function Key
  746.  
  747.  
  748.  
  749.         This option allows you to prevent another application from canceling
  750.         your color modifications.  The pop-up menu allows you to select one
  751.         of two options:
  752.  
  753.  
  754.         1 - Enable
  755.  
  756.         Option 1 Re-establishes the ability for a Mode change to reset the
  757.                  color palettes.  In other words, Mode changes are set back
  758.                  to a normal operating procedure.
  759.  
  760.  
  761.         2 - Disable
  762.  
  763.         Option 2 Disables a program's ability to reset the color palettes
  764.                  to their default values, effectively preserving the modi-
  765.                  fications you have made to the palettes.
  766.  
  767.  
  768.                  The Disable function operates under the following
  769.                  rules, restrictions and limitations:
  770.  
  771.  
  772.  
  773.            (1) If the Disable is in effect, a Mode change, whether issued
  774.                from an application or by the DOS MODE command, will prevent
  775.                a reset of the color palettes.
  776.  
  777.  
  778.            (2) The Disable will remain in effect until you cancel it with
  779.                Option 1, Enable Mode Change, or another program or
  780.                application does not specifically re-enable a mode change
  781.                in the same manner VgaColor prevents it.  Many graphic-based
  782.                packages will probably do just that.
  783.  
  784.  
  785.         If you use this option, it is important for you to remember that
  786.         the Disable is in effect.  You may try to perform an operation
  787.         at a later time and observe some peculiar color combinations and
  788.         forget that the Disable function is in effect.  If you are not
  789.         sure whether the Mode change is Enabled, simply use Option 1 to
  790.         set the operation back to normal.
  791.  
  792.         The integrity of, or assurance that, the Disable function will work
  793.         all of the time cannot be guaranteed because of other software
  794.         activity.
  795.  
  796.         __________________________________________________________________
  797.  
  798.         DigiTec VgaColor              11                 Copyright (c)1990
  799.  
  800.  
  801.                       PRINTING THE MODIFICATION SUMMARY REPORT
  802.  
  803.                                  Alt-P Function Key
  804.  
  805.  
  806.  
  807.         The report produced by this option gives you information on the
  808.         current state of the individual color registers.  The report
  809.         can be particularly useful for programmers who want to incorporate
  810.         the colors into their own applications, since all you would
  811.         need to do is simply supply the appropriate hex values to the
  812.         proper Bios routine to change the color.  Further technical
  813.         information may be found in the "Technical Information" section.
  814.  
  815.         Basically, the report provides three types of information.  The
  816.         left-hand side shows the default values of the individual color
  817.         registers for each of the 16 palettes.  Both hex and decimal
  818.         values are listed.  The middle section of the report shows the
  819.         palette/color Id number for each of the 16 palettes in hex and
  820.         decimal.  The right-hand side of the report show the current,
  821.         modified (if any) state of the individual color registers in hex
  822.         and decimal.  If a color palette has been modified, a double
  823.         asterisk (**) will appear on the far right-hand side of the report.
  824.  
  825.         The top of the report also shows the name of the file the
  826.         information on the report pertains to, provided the file was
  827.         saved before printing this report.
  828.  
  829.         If no modifications have been made to any of the color palettes,
  830.         a window will pop up, requesting whether you want to proceed
  831.         with the print operation.  A second window will appear asking
  832.         for the printer assignment (port) to use.  Simply specify the
  833.         proper assignment name (most printers are assigned to Lpt1)
  834.         and press the Enter key.
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.         __________________________________________________________________
  854.  
  855.         DigiTec VgaColor              12                 Copyright (c)1990
  856.  
  857.  
  858.                               SOUND ON/OFF TOGGLE
  859.  
  860.                               Alt-T Functions Key
  861.  
  862.  
  863.  
  864.         This option merely turns of the sound when you press the up or
  865.         down arrows to modify a color.  Simply press Alt-T to turn the
  866.         sound On or Off.
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.                                  DOS WINDOW
  875.  
  876.                            Shift-F10 Function Keys
  877.  
  878.  
  879.  
  880.         This option allows you to jump into DOS without exiting
  881.         VgaColor.  Simply press Shift-F10 to activate this function
  882.         to place you in a DOS session.  To return back to VgaColor,
  883.         type EXIT at the DOS prompt and press the Enter key.
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.         __________________________________________________________________
  911.  
  912.         DigiTec VgaColor              13                 Copyright (c)1990
  913.  
  914.  
  915.                          USING VGACOLOR AS A DOS COMMAND
  916.  
  917.  
  918.         VgaColor may be invoked as a DOS command to load a saved color
  919.         file description.  This allows you to load a saved color description
  920.         file without using the interactive aspects of VgaColor.  This
  921.         capability makes it extremely easy to automatically invoke
  922.         VgaColor when you start up your computer by simply including
  923.         the command in your AUTOEXEC.BAT file.
  924.  
  925.         To invoke as a DOS command, simply do the following:
  926.  
  927.  
  928.                 VGACOLOR  filename
  929.  
  930.  
  931.         Filename is the name of a previously saved color file created by
  932.         VgaColor.  The name of the file may contain a drive and path name.
  933.         If a problem occurs loading the file, VgaColor will respond with
  934.         an appropriate error message.
  935.  
  936.         ABSENCE OF A FILE NAME INVOKES THE INTERACTIVE PROCESS.  This
  937.         is how VgaColor distinguishes between command-line access and
  938.         invocation of the interactive process.
  939.  
  940.  
  941.         Examples:
  942.  
  943.  
  944.         VGACOLOR   COLOR1.VGA
  945.         VGACOLOR   C:\VGACOLOR\MAINCOLR.VGA
  946.  
  947.  
  948.  
  949.                                 SWITCHES
  950.  
  951.  
  952.         Two switches may be set when invoking VgaColor as a command-line.
  953.         These switches invoke the mode Enable/Disable functions, which
  954.         are also available in the interactive VgaColor functions.  The
  955.         following switches may be used:
  956.  
  957.         /D   =  Disable reset of color palettes by a MODE change
  958.         /E   =  Enable  reset of color palettes by a MODE change
  959.  
  960.         To activate, merely enter one of the switches as follows:
  961.  
  962.         VGACOLOR/D  COLOR1.VGA
  963.                  - or -
  964.         VGACOLOR/E  COLOR1.VGA
  965.  
  966.  
  967.         __________________________________________________________________
  968.  
  969.         DigiTec VgaColor              14                 Copyright (c)1990
  970.  
  971.  
  972.  
  973.  
  974.         Only one switch may be specified at a time.  The /D or /E switch
  975.         must follow VGACOLOR with no spaces before the /D or /E.  The
  976.         file name is specified as explained above.  If you want to invoke
  977.         a switch without specifying a file, simply use NUL for file name.
  978.         Upper- or lower-case /D or /E may be used.
  979.  
  980.         Also, please refer to the "Changing DOS Foreground and Background
  981.         Colors" Section for further information.
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.         __________________________________________________________________
  1025.  
  1026.         DigiTec VgaColor              15                 Copyright (c)1990
  1027.  
  1028.         ***************************************************************
  1029.         *                                                             *
  1030.         *        CHANGING DOS FOREGROUND AND BACKGROUND COLORS        *
  1031.         *                                                             *
  1032.         ***************************************************************
  1033.  
  1034.  
  1035.  
  1036.         Have you ever asked yourself, "I have an expensive VGA monitor and
  1037.         all I ever see is a black-and-white DOS prompt.  How do you display
  1038.         colors?".  The solution to your question is relatively simple--finding
  1039.         the information to do it is sometimes difficult.  We provide a simple
  1040.         program, SETBF.EXE, to accomplish this.  SETBF replaces the cryptic,
  1041.         DOS PROMPT command to change foreground and background colors.
  1042.  
  1043.  
  1044.  
  1045.                                   ANSI.SYS
  1046.  
  1047.  
  1048.         A special file (called a device driver) is distributed with your
  1049.         DOS operating system called ANSI.SYS.  This device driver allows
  1050.         you to redefine keys and control your display.  Before we proceed
  1051.         with showing you how to display colors, there are a few things
  1052.         that need to be done.  Generally, ANSI.SYS is not automatically
  1053.         installed on a machine.  It is most often an optional feature
  1054.         left to the user to decide whether they want to use it or not.
  1055.  
  1056.         The ANSI.SYS driver is always specified and loaded from your
  1057.         CONFIG.SYS file.  If you are not sure  ANSI.SYS has been installed
  1058.         in CONFIG.SYS, examine the CONFIG.SYS file.
  1059.  
  1060.         If ANSI.SYS is not present, you must include it before using SETBF.
  1061.         Using a text editor or equivalent, add the following statement to
  1062.         your CONFIG.SYS file:
  1063.  
  1064.  
  1065.                            DEVICE=C:\DOS\ANSI.SYS
  1066.  
  1067.         The above example assumes you have a separate directory for
  1068.         DOS.  Some users install DOS in their Root Directory in which
  1069.         case you would add the following to your CONFIG.SYS file:
  1070.  
  1071.  
  1072.                            DEVICE=ANSI.SYS
  1073.  
  1074.         If ANSI.SYS is already installed in your CONFIG.SYS file, you
  1075.         may proceed to the instructions on the next page.  If it is not,
  1076.         add ANSI.SYS to your CONFIG.SYS file.  YOU MUST RE-BOOT YOUR
  1077.         COMPUTER after installing ANSI.SYS.
  1078.  
  1079.  
  1080.  
  1081.         __________________________________________________________________
  1082.  
  1083.         DigiTec VgaColor              16                 Copyright (c)1990
  1084.  
  1085.                                USING SETBF.EXE
  1086.  
  1087.  
  1088.  
  1089.         A Few Basics About Colors:
  1090.  
  1091.         On a color monitor, DOS and most text-based applications use a
  1092.         standard color palette consisting of 16 preset colors.  These
  1093.         are the only colors accessible by DOS.  A program like VgaColor,
  1094.         however, can modify any of the 16 standard colors (palettes).
  1095.  
  1096.         Use our program, SETBF, to display any of the standard DOS colors.
  1097.         The DOS PROMPT command could be used to do the same thing, but is
  1098.         much more difficult to use.  SETBF should work on any color monitor.
  1099.         Use the format below to initiate SETBF.  Upper- and lower-case
  1100.         letters may be used.
  1101.  
  1102.  
  1103.         Format:
  1104.  
  1105.                 SETBF   foreground-color   on   background-color
  1106.  
  1107.  
  1108.         Where:  foreground-color and background-color is any valid color
  1109.                 listed below.  The word 'on' separating foreground and
  1110.                 background-color is optional.
  1111.  
  1112.  
  1113.         Valid FOREGROUND Colors:
  1114.  
  1115.  
  1116.                     Black           Red               Green
  1117.                     Brown           Blue              Magenta
  1118.                     Cyan            White             Gray
  1119.                     Yellow          Hi-Red            Hi-Green
  1120.                     Hi-Blue         Hi-Magenta        Hi-Cyan
  1121.                     Hi-White
  1122.  
  1123.  
  1124.         Valid BACKGROUND Colors:
  1125.  
  1126.  
  1127.                     Black           Red               Green
  1128.                     Brown           Blue              Magenta
  1129.                     Cyan            White
  1130.  
  1131.  
  1132.  
  1133.         Example:    SETBF   Hi-Cyan  on  Magenta
  1134.  
  1135.                     Will display a high-intensity Cyan foreground with
  1136.                     a Magenta background.
  1137.  
  1138.         __________________________________________________________________
  1139.  
  1140.         DigiTec VgaColor              17                 Copyright (c)1990
  1141.  
  1142.  
  1143.         You can also obtain help information for SETBF any time you
  1144.         wish by simply invoking SETBF in the following manner:
  1145.  
  1146.  
  1147.                               SETBF/h
  1148.  
  1149.  
  1150.         Do not include a space before the /h.
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.         You can now, if you wish, use VgaColor to modify the Magenta
  1157.         background and high-intensity Cyan foreground color to whatever
  1158.         suites you.  Any of the colors listed in the table may be used
  1159.         by SETBF to change colors.  If you use VgaColor to modify the
  1160.         colors, you would simply select color #5-Magenta and color
  1161.         #11-High-Intensity Cyan.  After you are finished modifying
  1162.         these colors and exit VgaColor, the foreground and background
  1163.         color you selected with SETBF.EXE will be different.
  1164.  
  1165.  
  1166.  
  1167.         REMEMBER - You have to have a color displayed in your DOS session
  1168.                    in order to show any modifications made by VgaColor!
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.         *****************************************************************
  1175.         *                                                               *
  1176.         *  Do not use the DOS PROMPT command to change colors if you    *
  1177.         *  also use SETBF.  The PROMPT command has the effect of making *
  1178.         *  changes using SETBF non-permanent.                           *
  1179.         *                                                               *
  1180.         *****************************************************************
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.         __________________________________________________________________
  1196.  
  1197.         DigiTec VgaColor              18                 Copyright (c)1990
  1198.  
  1199.  
  1200.         Automating the Process:
  1201.  
  1202.         If you want your colors automatically invoked, all you need to do
  1203.         is include the SETBF and VGACOLOR commands in your AUTOEXEC.BAT
  1204.         file.  Then, every time you start your computer, the colors will
  1205.         automatically be set.  To do this, simply add the following to
  1206.         your AUTOEXEC.BAT file:
  1207.  
  1208.  
  1209.  
  1210.                              SETBF  Hi-Cyan  on  Magenta
  1211.                              VGACOLOR  MYCOLOR.VGA
  1212.  
  1213.  
  1214.  
  1215.  
  1216.         Note - When specifying the file for VGACOLOR to load, we assume
  1217.                you saved the modified color description file.  For
  1218.                the purposes of this example, we use MYCOLOR.VGA and
  1219.                also assume MYCOLOR.VGA is located in your Root directory.
  1220.                The color file description can reside anywhere and the
  1221.                filename can be of your choosing.
  1222.  
  1223.                The example above also assumes that you generated a Magenta
  1224.                background and high-intensity Cyan foreground using SETBF.
  1225.                You would also have used VgaColor to modify color
  1226.                #5-Magenta and color #11-High-Intensity Cyan.  You must
  1227.                modify the same color(s) with VgaColor as those specified
  1228.                for SETBF in order for the new colors to be displayed!
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.         __________________________________________________________________
  1253.  
  1254.         DigiTec VgaColor              19                 Copyright (c)1990
  1255.  
  1256.         ***************************************************************
  1257.         *                                                             *
  1258.         *                    TECHNICAL INFORMATION                    *
  1259.         *                                                             *
  1260.         ***************************************************************
  1261.  
  1262.  
  1263.  
  1264.         This section offers some technical information about VgaColor which
  1265.         may be primarily of interest to programmers.  You may find VgaColor
  1266.         useful for designing your VGA color schemes and using the saved
  1267.         file description in your own programs.  This may save you some
  1268.         development time for this portion of your application.  The infor-
  1269.         mation is not exhaustive, and we assume you have some knowledge
  1270.         of the information we are providing.
  1271.  
  1272.  
  1273.         VgaColor takes advantage of Bios (Int 10h) for all manipulation of
  1274.         the color palettes and individual color registers.  This method is
  1275.         available only for VGA monitors.  Since VgaColor was designed for
  1276.         VGA monitors, EGA was not a concern.
  1277.  
  1278.         Basically, there are two methods you can use to access the color
  1279.         palettes and individual color registers: (1) hard-code the values
  1280.         in your program or (2) use the saved color file description created
  1281.         by VgaColor.  Which ever method you choose, the following assembly
  1282.         routine (or comparable high-level language method) may be used to
  1283.         modify the individual color registers:
  1284.  
  1285.  
  1286.  
  1287.                      mov  AH,10h      ;Palette Services
  1288.                      mov  AL,10h      ;Service 10h - Set Color Register
  1289.                      mov  BX,2        ;Palette Id to Change - (Decimal)
  1290.                      mov  DH,00h      ;Intensity of Red   (hex)
  1291.                      mov  CH,2Ah      ;Intensity of Green (hex)
  1292.                      mov  CL,00h      ;Intensity of Blue  (hex)
  1293.  
  1294.                      Int  10h         ;BIOS Service
  1295.  
  1296.  
  1297.  
  1298.         The example above will restore Palette # 2 back to its original
  1299.         default color, Green.  If hard coding the values in your program,
  1300.         simply use the print option of VgaColor to list the current state
  1301.         of the individual color registers.  Supply the palette Id decimal
  1302.         value for BX, Red intensity for DH (hex), Green intensity for CH
  1303.         (hex) and Blue intensity for CL (hex).
  1304.  
  1305.         Remember, you are changing one of the 16 palettes (0 - 15) one
  1306.         at a time.  If you change all 16 palettes, the programming
  1307.         example above would have to be performed 16 times.
  1308.  
  1309.         __________________________________________________________________
  1310.  
  1311.         DigiTec VgaColor              20                 Copyright (c)1990
  1312.  
  1313.  
  1314.                     FORMAT OF THE SAVED COLOR FILE DESCRIPTION
  1315.  
  1316.  
  1317.  
  1318.         You may find it much more convenient to change the color registers
  1319.         using the saved color file description, rather than hard coding
  1320.         the desired values in your program.  Listed below is the format
  1321.         of this file.
  1322.  
  1323.         The color description is a simple, 80-byte record containing only
  1324.         one record in the file in a byte-stream format:
  1325.  
  1326.  
  1327.         Position      Length        Value                 Description
  1328.  
  1329.          1 - 8           8          VgaColor    Id field used by VgaColor.
  1330.                                                 For your application, you
  1331.                                                 may change it to any desired
  1332.                                                 value.
  1333.  
  1334.          9 -72          64          Variable    These are the 1 byte, binary
  1335.                                                 values used to modify the
  1336.                                                 color palettes and values
  1337.                                                 of the individual color
  1338.                                                 registers.  The 64 bytes
  1339.                                                 are arranged as an array
  1340.                                                 which occurs 16 times:
  1341.  
  1342.  
  1343.                                                  1 - Palette Id      Byte  9
  1344.                                                      Red Intensity   Byte 10
  1345.                                                      Green Intensity Byte 11
  1346.                                                      Blue Intensity  Byte 12
  1347.                                                          .
  1348.                                                          .
  1349.                                                          .
  1350.                                                 16   Palette Id      Byte 69
  1351.                                                      Red Intensity   Byte 70
  1352.                                                      Green Intensity Byte 71
  1353.                                                      Blue Intensity  Byte 72
  1354.  
  1355.  
  1356.                                                 Simply view the file as
  1357.                                                 arranged as a group of
  1358.                                                 4 fields occurring 16 times.
  1359.  
  1360.  
  1361.  
  1362.  
  1363.         73-80            8          Not Used
  1364.  
  1365.  
  1366.         __________________________________________________________________
  1367.  
  1368.         DigiTec VgaColor              21                 Copyright (c)1990
  1369.  
  1370.  
  1371.         When using the saved color file, the values supplied to Int 10h
  1372.         are the same as shown for the hard-coded example except the
  1373.         value for Palette Id (BX).  Since the value for Palette Id is
  1374.         a hex representation, move the value in the field to BL and
  1375.         00h to BH.  Simply read the one record in the file and program
  1376.         a loop to load the Palette Id, Red, Green and Blue intensities
  1377.         and perform Int 10h 16 times.
  1378.  
  1379.  
  1380.         Note:  The values for the Palette numbers may seem different than
  1381.                what you may have expected.  Normally, their values are
  1382.                0 thru 15 (00h thru 0Fh).  Modifying the VGA color palettes
  1383.                using Bios requires different values which is why, for
  1384.                examples, palettes 08h through 0Fh have the values of
  1385.                38h thru 3Fh assigned to them.
  1386.  
  1387.  
  1388.         It is also a good practice to reset the color palettes back
  1389.         to their original, unmodified state upon termination of your
  1390.         application.  Your users will appreciate it.  This can be done
  1391.         by either restoring the 16 color palettes using the default
  1392.         values, or by issuing a mode change using Int 10h, Service 0.
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.         __________________________________________________________________
  1424.  
  1425.         DigiTec VgaColor              22                 Copyright (c)1990
  1426.  
  1427.